import request from "../utils/request";

export interface IBannerType {
  objectId: string;
  url: string;
  name: string;
}
export const bannerGet = () => {
  return request.get("/classes/VueBanner");
};

// 商品列表
export interface IProType {
  objectId?: string;
  proid: string;
  proname: string;
  originprice: number;
  img1: string;
  img2: string;
  img3: string;
  img4: string;
}
export const prodGet = (page: number = 1) => {
  return request.get("/classes/VueProduct", {
    params: {
      limit: 10,
      skip: (page - 1) * 10,
    },
  });
};
